package com.menggudf;

public class HtmlToPdfConverter {
 /*
    public static byte[] convertHtmlToPdf(String html) throws DocumentException, IOException {
      Document document = new Document(PageSize.A4);
        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        PdfWriter writer = PdfWriter.getInstance(document, outputStream);
        document.open();

        InputStream inputStream = new ByteArrayInputStream(html.getBytes("UTF-8"));
        List<?> objects = HTMLWorker.parseToList(inputStream, null);
        for (Object o : objects) {
            document.add((com.itextpdf.text.Element) o);
        }

        document.close();
        return outputStream.toByteArray();
    }*/
}